<fieldset>
	<legend> Mon compte </legend>
		<br/>
			<div id="account">
				<?php
					if (isset($message)) {
						echo "<p>";
						echo $message;
						echo "</p>";
					}	
						require_once("model/userBD.php");
						$id=$_GET['id_user'];
						$user=select_user_by_id($id);
					
						
				?>
				<div id="update_user" style="display:">
					</br>
					
						<b>Nom : </b><?php	echo $user['nom'][0]; ?><br />
						<b>Prenom :</b><?php	echo $user['prenom'][0]; ?><br />
						<b>Mail : </b><?php	echo $user['mail'][0]; ?><br />
						<b>Photo : </b><br><img src="./photos/user/<?php echo $user['nom_photo'][0]; ?>" height="100">
						<br/>
						<?php $mail=$user['mail'][0];
						echo "<b><a href=\"index.php?page=contact_user&mail_user=$mail\"> Contact </a></b><br/>";
						$id = $user['id_user'][0];
						require_once("model/subscriptionBD.php");
						$usersub=view_subscriptionBD($user['id_user'][0]);
						if ($usersub == 0) {
							echo "<b><a href=\"index.php?page=add_subscriber&id_user=$id\">";
							echo "S'abonner </b>";
						} else { 
							echo "<b><a href=\"index.php?page=delete_subscriber&id_user=$id\">";
							echo "Se desabonner </b>";
						}
						echo "</a>";
						?>
							
				</div> <!-- fin div update_user --> 
</fieldset>
